package com.superlc.ssm.modular.sys.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * @ProjectName: ssm$
 * @Package: com.superlc.ssm.modular.sys.controller$
 * @ClassName: HelloController$
 * @Description: Controller控制器
 * @Author: super
 * @CreateDate: 2018/8/7$ 17:18$
 * @UpdateUser: 更新者
 * @UpdateDate: 2018/8/7$ 17:18$
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
@Controller
public class HelloController {


    @RequestMapping("/hello")
    public String hello(Model model){
        model.addAttribute("hello","数据绑定");
        return "views/hello";
    }

    @RequestMapping("/view/index")
    public String index(Model model){
        return "views/index";
    }


}
